Skip to content

[doc/acl]: Add TC_ACTION (set traffic class) ACL rule action#2432

Open
AnantKishorSharma wants to merge 1 commit into
sonic-net:masterfrom
AnantKishorSharma:hld-acl-set-tc-action
Open

[doc/acl]: Add TC_ACTION (set traffic class) ACL rule action#2432
AnantKishorSharma wants to merge 1 commit into
sonic-net:masterfrom
AnantKishorSharma:hld-acl-set-tc-action

Conversation

@AnantKishorSharma

@AnantKishorSharma AnantKishorSharma commented Jul 1, 2026

Copy link
Copy Markdown

Why I did it

Document the new TC_ACTION ACL rule action (set traffic class) in the ACL High Level Design.

How I did it

  • Bump revision 1.1 -> 1.2 and add a revision-history row.
  • Add a design paragraph describing TC_ACTION -> SAI_ACL_ENTRY_ATTR_ACTION_SET_TC (realized by AclRulePacket, gated by the per-stage ASIC action capability published in STATE_DB ACL_STAGE_CAPABILITY_TABLE, with no behavior change for existing platforms), plus a paragraph on its composability: an additive action that AclRulePacket::validate() excludes from the single exclusive-action check, so a rule may set the traffic class alone or together with a forwarding action and/or a counter.
  • Add the tc_action keyword to Appendix A.

Related PRs:

Repo PR title State
sonic-swss aclorch: Support SET_TC (traffic class) ACL rule action state
sonic-buildimage sonic-yang-models: Add TC_ACTION to sonic-acl state
sonic-mgmt tests: SET_TC (TC_ACTION) ACL rule action state

Document the TC_ACTION ACL rule action added in sonic-swss: it programs
SAI_ACL_ENTRY_ATTR_ACTION_SET_TC to set the traffic class of matched
packets, is gated by the per-stage ASIC action capability published in
ACL_STAGE_CAPABILITY_TABLE, and is a composable (additive) action that
AclRulePacket::validate() excludes from its single exclusive-action
check. Bump the ACL HLD revision to 1.2.

Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants